Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic Rust bindings #201

Merged
merged 5 commits into from
Mar 13, 2019
Merged

Add basic Rust bindings #201

merged 5 commits into from
Mar 13, 2019

Conversation

axic
Copy link
Member

@axic axic commented Mar 13, 2019

Part of #168.

@axic axic force-pushed the evmc-rust branch 3 times, most recently from b37e7c5 to 1de9721 Compare March 13, 2019 13:02
@axic
Copy link
Member Author

axic commented Mar 13, 2019

Next step is to create a Result type which wraps a u8 array.

This type should:

  • a from trait from a u8[] slice
  • a function which returns a C function for destroying the instance (the C signature is extern fn evmc_release_result(result: *const evmc_result) where result is a pointer to object)
  • a function which returns a C pointer to the beginning of the data

@axic axic force-pushed the evmc-rust branch 5 times, most recently from 5eb3c44 to af379cf Compare March 13, 2019 14:37
bindings/rust/evmc-sys/Cargo.toml Show resolved Hide resolved
.gitignore Show resolved Hide resolved
bindings/rust/evmc-vm/Cargo.toml Show resolved Hide resolved
.bumpversion.cfg Show resolved Hide resolved
@chfast chfast merged commit 139985d into master Mar 13, 2019
@chfast chfast deleted the evmc-rust branch March 13, 2019 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants